import { Receive } from '@app/models/receive'

const Receives = new class {
    async insert(from: string, to: string, symbol: string, amount: string, hash: string) {
        const record = new Receive()
        record.from = from
        record.to = to
        record.symbol = symbol
        record.amount = amount
        record.hash = hash
        return await record.save()
    }
}()

export { Receives }
